package com.shanzmoo.db.module.product.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.shanzmoo.db.module.product.domain.query.UnitQueryVO;
import com.shanzmoo.db.module.product.entity.ProductUnitEntity;
import com.shanzmoo.db.module.product.mapper.ProductUnitMapper;
import com.shanzmoo.db.module.product.service.IProductUnitService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商品单位 服务实现类
 * </p>
 *
 * @author xueqz
 * @since 2021-04-13
 */
@Service
public class ProductUnitServiceImpl extends ServiceImpl<ProductUnitMapper, ProductUnitEntity> implements IProductUnitService {

    @Override
    public List<ProductUnitEntity> getUnitListMethod(UnitQueryVO unitQueryVO) {
        return baseMapper.selectList(new QueryWrapper<ProductUnitEntity>()
                .eq("deleted", false));
    }
}
